﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DACU.VkontakteApi.Collections
{
	class VKDomainCollection:List<string>
	{
		public bool IsEmpty
		{
			get { return Count < 1; }
		}

		public VKDomainCollection()
		{
		}

		public VKDomainCollection(IEnumerable<string> collection):base(collection)
		{
		}

		public VKDomainCollection(int capacity)
			: base(capacity)
		{
		}

		public string ToFormatedString()
		{
			var sb = new StringBuilder();
			ForEach(t=>sb.AppendFormat("{0},",t));
			sb.Remove(sb.Length - 1, 1);
			return sb.ToString();
		}
	}
}
